package models

type Permission struct {
	Id          int64         `json:"id" mapstructure:"-"`
	Name        string        `json:"name"`
	Code        string        `json:"code" xorm:"unique not null"`
	Type        string        `json:"type"`
	ParentId    int64         `json:"parentId" xorm:"parentId"`
	Path        string        `json:"path"`
	Redirect    string        `json:"redirect"`
	Icon        string        `json:"icon"`
	Component   string        `json:"component"`
	Layout      string        `json:"layout"`
	KeepAlive   bool          `json:"keepAlive" xorm:"keepAlive"`
	Method      string        `json:"method"`
	Description string        `json:"description"`
	Show        bool          `json:"show"`
	Enable      bool          `json:"enable"`
	Order       int64         `json:"order"`
	Created     int64         `json:"created" mapstructure:"-" xorm:"created"`
	Updated     int64         `json:"updated" mapstructure:"-" xorm:"updated"`
	Deleted     int64         `json:"deleted" mapstructure:"-" xorm:"deleted"`
	Children    []*Permission `json:"children" mapstructure:"-" xorm:"-"`
}
